#!/usr/bin/env python
# _*_coding:utf-8_*_

"""
@Time :    2019/10/24 20:11
@Author:  ThinHeader
@File: urls.py
@Software: PyCharm
"""
from django.conf.urls import url

from kill.views import KillProductListView, KillProductAddView, KillProductEditView, KillProductShelveView, KillProductDeleteView, \
    KillProductOrderListView, KillProductMobileListView, KillProductDetailView

urlpatterns = [
    # 活动列表
    url(r'^list/(?P<shop_id>[0-9]+)$', KillProductListView.as_view(), name='list'),
    # 活动添加
    url(r'^add/(?P<shop_id>[0-9]+)$', KillProductAddView.as_view(), name='add'),
    url(r'^edit/(?P<shop_id>[0-9]+)$', KillProductEditView.as_view(), name='edit'),
    # 活动上下架
    url(r'^shelve/(?P<shop_id>[0-9]+)$', KillProductShelveView.as_view(), name='shelve'),
    # 活动删除
    url(r'^delete/(?P<shop_id>[0-9]+)$', KillProductDeleteView.as_view(), name='delete'),

    # mobile端路由
    url(r'^mobile_list$', KillProductMobileListView.as_view(), name='mobile_list'),
    url(r'^detail_(?P<product_id>\d+)$', KillProductDetailView.as_view(), name='detail'),
    # 订单路由
    url(r'^order_list/(?P<shop_id>[0-9]+)$', KillProductOrderListView.as_view(), name='order_list'),

]
